import request from "../utils/request";

export function subLogin(ruleForm) {
    return request({
        url: '/ses/mdStoreUser/login',
        method: 'post',
        data: ruleForm
    })
}


export function first() {
    return request({
        url: '/ses/mdStorefirst/selectAll/',
        method: 'get',
    });
}


export function third() {
    return request({
        url: '/ses/mdStorethird/selectAll/',
        method: 'get',
    });
}

export function fabu(userFrom,storeId) {
    return request({
        url: '/ses/mdSf/fabu',
        method: 'post',
        params: {
            storeId: storeId,
            firstId: userFrom.firstId,
            secondId:userFrom.secondId,
            thirdId:userFrom.thirdId,
        }
    });
}

export function selectServe(storeId) {
    return request({
        url: '/ses/mdSf/selectServe',
        method: 'get',
        params: {
            storeId: storeId,
        }
    });
}


export function serveManagement(row) {
    return request({
        url: '/ses/mdSf/serviceOnAndOff/' + row.sfId,
        method: 'post',
    });
}

export function count(storeId) {
    return request({
        url: '/ses/mdSf/countServe',
        method: 'get',
        params: {
            storeId: storeId,
        }
    });
}
